package com.shangma.cn.entity.base.impl;

import com.baomidou.mybatisplus.annotation.TableName;
import com.shangma.cn.commons.valid.AddGroup;
import com.shangma.cn.commons.valid.UpdateGroup;
import com.shangma.cn.entity.base.BaseEntity;
import com.shangma.cn.exception.base.BaseException;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 开发人员: 辉哥真球帅
 * 联系方式: zhengzhoudaxuevip@163.com
 * 创建时间: 2021/10/11  16:17
 * 文件含义:
 */
@TableName("sys_role")
@Data
public class Role  extends BaseEntity {

    @NotBlank(message = "角色名称不能为空",groups = {AddGroup.class, UpdateGroup.class})
    private String roleName;

    @NotBlank(message = "角色描述不能为空",groups = {AddGroup.class, UpdateGroup.class})
    private String roleDesc;
}
